//
//  CategoryDetailModel.h
//  Present
//
//  Created by dllo on 15/10/7.
//  Copyright (c) 2015年 Lemon. All rights reserved.
//

#import "BaseModel.h"

@interface CategoryDetailModel : BaseModel

@property (nonatomic, assign) NSInteger category_id;
@property (nonatomic, copy) NSString *cover_image_url;//图片
@property (nonatomic, assign) NSInteger created_at;//创建时间
@property (nonatomic, copy) NSString *descriptions;//描述 (与系统名字相同)
@property (nonatomic, assign) NSInteger editor_id;
@property (nonatomic, assign) NSInteger favorites_count;//喜欢
@property (nonatomic, assign) NSInteger id;//id
@property (nonatomic, retain) NSMutableArray *image_urls;//图片数组
@property (nonatomic, copy) NSString *name;//名字
@property (nonatomic, copy) NSString *price;//价钱
@property (nonatomic, copy) NSString *purchase_id;
@property (nonatomic, copy) NSString *purchase_url;
@property (nonatomic, assign) NSInteger purchase_type;
@property (nonatomic, assign) NSInteger updated_at;//更新时间
@property (nonatomic, copy) NSString *url;//详情网址

@end

/*
 {
 "code": 200,
 "data": {
 "items": [
 {
 "brand_id": null,
 "brand_order": null,
 "category_id": 1,
 "cover_image_url": "http://img03.liwushuo.com/image/150921/sdkaztac7.jpg-w720",
 "created_at": 1442826665,
 "description": "运动感十足又很帅气的一款代步车，摒弃了单轮，全新的双轮设计增大了接触面积，行动起来更加的稳定呢。",
 "editor_id": 1020,
 "favorites_count": 1311,
 "id": 1034295,
 "image_urls": [],
 "name": "博美·拉杆代步火星车",
 "post_ids": [ ],
 "price": "809.00",
 "purchase_id": "42354020537",
 "purchase_status": 1,
 "purchase_type": 2,
 "purchase_url": "http://s.click.taobao.com/t?e=m%3D2%26s%3D%2BGwloHzQlO0cQipKwQzePOeEDrYVVa64yK8Cckff7TVRAdhuF14FMdfdZJmkCv7I5x%2BIUlGKNpWtgmtnxDX9deVMA5qBABUs5mPg1WiM1P5OS0OzHKBZzW1e2y4p13L5Tj1c%2FRXr1pqIzG8BmDiVAo%2BZvntizSgfDJbuZDCrHt4%3D",
 "subcategory_id": 7,
 "updated_at": 1442826665,
 "url": "http://www.liwushuo.com/items/1034295"
 },
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {}
 ],
 "paging": {
 "next_url": "http://api.liwushuo.com/v2/item_subcategories/7/items?limit=20&offset=20"
 }
 },
 "message": "OK"
 }

*/